<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>添加下级代理</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/theme/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/theme/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/theme/style.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/theme/jquery.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/theme/bootstrap.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/theme/ckform.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/theme/common.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/layerui/layer.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/layerui/layer.ext.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<table class="table table-bordered table-hover definewidth m10">
    
    <tr>
        <td width="30%" style="text-align: right;" class="tableleft">代理商信息</td>
        <td>
        <input type="hidden" name="userId" id="userId" value="${user.id}" >
        <p> ${user.phone}&nbsp;/&nbsp;${user.email} </p>
        </td>
    </tr>
  
    <tr>
        <td style="text-align: right;" class="tableleft">收款信息</td>
        <td>
        <p>${tradeFlow.bankName}</p>
        <p>${tradeFlow.bankUserNo}</p>
        <p>${tradeFlow.bankUserName}</p>
        </td>
    </tr>
    <tr>
        <td style="text-align: right;" class="tableleft">打款金额</td>
        <td><input type="text" name="amount" id="amount" value="${tradeFlow.amount}"/>  </td>
    </tr>
    <tr>
        <td style="text-align: right;" class="tableleft">备注</td>
        <td>
        	<textarea name="remark" id="remark" rows="4" cols="3">${tradeFlow.remark} </textarea>
        </td>
    </tr>
    <tr>
        <td style="text-align: right;" class="tableleft">操作时间</td>
        <td>
        	<fmt:formatDate value="${user.createTime}" type="both"/>
        </td>
    </tr>
    <tr>
        <td class="tableleft"></td>
        <td>
            <button type="button" class="btn btn-success" name="backid" id="backid">关闭</button>
        </td>
    </tr>
</table>
</body>
<script>
    $(function () {       
		$('#backid').click(function(){
			var system ={}; 
	        var p = navigator.platform;      
	        system.win = p.indexOf("Win") == 0; 
	        system.mac = p.indexOf("Mac") == 0; 
	        system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);    
	        if(system.win||system.mac||system.xll){
	    		//如果是电脑跳转到弹出框 
	        	parent.layer.close(parent.lindex);
	        }else{  
	    		//如果是手机,跳转到页签
	    		window.history.go(-1);
	    		//window.location.href="${pageContext.request.contextPath}/admin/user_next_info.html";
	        }
		 });
		
    });
   
</script>
</html>